package com.czy.form.model;

import lombok.Data;

import javax.persistence.*;

/***
 * @ ClassName: FormDataItem
 * @ Description: TODO
 * @ author：libi
 * @ date： 2020/2/1 13:45
 * @ version： V1.0.0
 * @ CopyRight：czy
 */
@Entity
@Table(name = "form_data_item", schema = "form")
@Data
public class FormDataItem extends FormMeta{

    @Column(name = "data_id", columnDefinition = "varchar(36) comment 'data外键'")
    String dataId;

    @ManyToOne
    @JoinColumn(name = "field_id")
    FormFieldInfo fieldInfo;

    @Column(name = "value", columnDefinition = "varchar(255) comment '简单值'")
    String value;

    @Column(name = "long_value", columnDefinition = "longtext comment '文本域'")
    String longValue;
}
